import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;


public class No31 {
	public static void main(String[] args) {
		int x = 10000;
		double y = 100089;
		
		DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols();
//		decimalFormatSymbols.setDecimalSeparator('.');
//		decimalFormatSymbols.setGroupingSeparator(',');
		
		DecimalFormat df = new DecimalFormat("#,##0.00", decimalFormatSymbols);
		System.out.println(df.format(x));
		System.out.println(df.format(y));
	}
}
